Application onError Attributeapp.onError Description The onError attribute takes a function to perform an action when an error occurs. By creating a function and assigning it to onError, you can respond to the error systematically, e.g. close and restart the application, noting the error in a log file if it occurred during rendering. Type Function that takes a string, or null if no function is assigned. Example function err(errString) ( alert(errString); ) app.onError = err |